import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import("@/views/IndexView.vue")
    },
    {
      path: '/auth',
      component: () => import("@/views/Login/AuthView.vue"),
      children: [
        {
          path: 'login',
          component: () => import("@/components/Login/login.vue")
        }, {
          path: "register",
          component: () => import("@/components/Login/register.vue")
        }
      ]
    },
    {
      path: '/manager',
      component: () => import("@/views/Manager/ManagerIndexView.vue"),
      children: [
        {
          path: "order/tackOut",
          component: () => import("@/components/manager/order/tackOutOrderPart.vue"),
        },
        {
          path: "order/shopInfo",
          component: () => import("@/components/manager/order/ShopInfoView.vue")
        },
        {
          path: "order/viewInformation",
          component: () => import("@/components/manager/order/viewOrderInformationPart.vue")
        },
        {
          path: "feedback/provide",
          component: () => import("@/components/manager/feedback/provideFeedbackPart.vue")
        }, {
          path: "feedback/personal",
          component: () => import("@/components/manager/feedback/personalFeedbackPart.vue")
        }, {
          path: "feedback/all",
          component: () => import("@/components/manager/feedback/allFeedbackPart.vue")
        }, {
          path: "person/view",
          component: () => import("@/components/manager/person/viewPersonalInformation.vue")
        }, {
          path: "person/set",
          component: () => import("@/components/manager/person/setPersonalInformation.vue")
        }, {
          path: "person/notify",
          component: () => import("@/components/manager/person/notifyPart.vue")
        }, {
          path: "sender/allOrder",
          component: () => import("@/components/manager/sender/allOrderPart.vue")
        }, {
          path: "sender/orderInfo",
          component: () => import("@/components/manager/sender/orderInformationPart.vue")
        }, {
          path: "sender/qualification",
          component: () => import("@/components/manager/sender/orderQualificationPart.vue")
        }, {
          path: "sender/message",
          component: () => import("@/components/manager/sender/messageNotificationPat.vue")
        }
      ]
    }


  ]
})

export default router
